home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4137 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  670 b 

  1. Path: usenet.cis.ufl.edu!caen!cjlin
  2. From: cjlin@news-server.engin.umich.edu (Chih-Jen Lin)
  3. Newsgroups: comp.lang.c
  4. Subject: a link problem
  5. Date: 2 Feb 1996 02:13:59 GMT
  6. Organization: University of Michigan Engineering, Ann Arbor
  7. Message-ID: <4ers17$4c3@srvr1.engin.umich.edu>
  8. NNTP-Posting-Host: @magnumpi.engin.umich.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Hi,
  12.  
  13. It seems that the order of .o files in makefile affect
  14. link result. For example, if function A in a.c call function
  15. B in b.c, then I need to use   
  16. %cc  ...   a.o b.o
  17. and can't use
  18. %cc  ...   b.o a.o
  19.  
  20. This looke very inconvinent. Is there any way to solve
  21. this problem ? Thanks for your help.
  22.  
  23. Chih-Jen Lin
  24.